import request from '@/utils/request'

// 查询POCT检测结果列表
export function listDetectionResult(query) {
  return request({
    url: '/system/detectionResult/list',
    method: 'post',
    data: query
  })
}

// 查询POCT检测结果详细
export function getDetectionResult(id) {
  return request({
    url: '/system/detectionResult/' + id,
    method: 'get'
  })
}

// 新增POCT检测结果
export function addDetectionResult(data) {
  return request({
    url: '/system/detectionResult',
    method: 'post',
    data: data
  })
}

// 修改POCT检测结果
export function updateDetectionResult(data) {
  return request({
    url: '/system/detectionResult',
    method: 'put',
    data: data
  })
}

// 删除POCT检测结果
export function delDetectionResult(id) {
  return request({
    url: '/system/detectionResult/' + id,
    method: 'delete'
  })
}
